bubble_a:
.LFB3:
    .cfi_startproc
    pushq   %rbp
    .cfi_def_cfa_offset 16
    .cfi_offset 6, -16
    movq    %rsp, %rbp
    .cfi_def_cfa_register 6
    movq    %rdi, -24(%rbp)
    movl    %esi, -28(%rbp)
    movl    $1, -8(%rbp)
    jmp .L6
.L10:
    movl    -8(%rbp), %eax
    subl    $1, %eax
    movl    %eax, -12(%rbp)
    jmp .L7
.L9:
    movl    -12(%rbp), %eax
    cltq
    addq    $1, %rax
    leaq    0(,%rax,4), %rdx
    movq    -24(%rbp), %rax
    addq    %rdx, %rax
    movl    (%rax), %edx
    movl    -12(%rbp), %eax
    cltq
    leaq    0(,%rax,4), %rcx
    movq    -24(%rbp), %rax
    addq    %rcx, %rax
    movl    (%rax), %eax
    cmpl    %eax, %edx
    jge .L8
    movl    -12(%rbp), %eax
    cltq
    addq    $1, %rax
    leaq    0(,%rax,4), %rdx
    movq    -24(%rbp), %rax
    addq    %rdx, %rax
    movl    (%rax), %eax
    movl    %eax, -4(%rbp)
    movl    -12(%rbp), %eax
    cltq
    addq    $1, %rax
    leaq    0(,%rax,4), %rdx
    movq    -24(%rbp), %rax
    addq    %rax, %rdx
    movl    -12(%rbp), %eax
    cltq
    leaq    0(,%rax,4), %rcx
    movq    -24(%rbp), %rax
    addq    %rcx, %rax
    movl    (%rax), %eax
    movl    %eax, (%rdx)
    movl    -12(%rbp), %eax
    cltq
    leaq    0(,%rax,4), %rdx
    movq    -24(%rbp), %rax
    addq    %rax, %rdx
    movl    -4(%rbp), %eax
    movl    %eax, (%rdx)
.L8:
    subl    $1, -12(%rbp)
.L7:
    cmpl    $0, -12(%rbp)
    jns .L9
    addl    $1, -8(%rbp)
.L6:
    movl    -8(%rbp), %eax
    cmpl    -28(%rbp), %eax
    jl  .L10
    nop
    popq    %rbp
    .cfi_def_cfa 7, 8
    ret
    .cfi_endproc
.LFE3:
    .size   bubble_a, .-bubble_a
    .ident  "GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609"
    .section    .note.GNU-stack,"",@progbits
